Medical - Change - Pain level affects stability#8098
Medical - Change - Pain level affects stability#8098Bummeri wants to merge 1 commit intoacemod:masterfrom
Conversation
|
@jonpas is this way ok? |
| private _heartRate = GET_HEART_RATE(_unit); | ||
| if (_heartRate < 40) exitWith { false }; | ||
|
|
||
| private _painLevel = GET_PAIN(_unit); |
There was a problem hiding this comment.
If you want to account for medication, GET_PAIN_PERCEIVED(unit)
|
Change it to a proper PR when you think it's ready. |
|
I don't like this without a rework of pain simulation first (well, I don't like this at all). You don't feel pain when you're asleep. If anything, pain wakes you up. If the goal is just to affect PAKs (why?) then stable condition should be modified instead. |
Same. |
When merged this pull request will:
Stability is a prerequisite for becoming conscious. With this and this: Medical Damage - Add setting for unconscious chance from pain #8092 Pain can be more important incapacitor.
Things affected that need to be checked:
I think FullHealLocal is not an issue since pain is set to 0 in it:
ACE3/addons/medical_treatment/functions/fnc_fullHealLocal.sqf
Line 35 in 8e7f9b6
Setting uncon. by script ?:
https://github.com/acemod/ACE3/blob/8e7f9b6db53a279432a2372c04be311807d1193b/addons/medical/functions/fnc_setUnconscious.sqf
And pain supression should be considered in some way?
https://github.com/acemod/ACE3/blob/8e7f9b6db53a279432a2372c04be311807d1193b/addons/medical_vitals/functions/fnc_updatePainSuppress.sqf
PAK treatment prerequisite are effected:
https://github.com/acemod/ACE3/blob/171fbf1e9ec3ee593ee0fc9e5c04b1270db4d01f/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp